﻿@model LabManagement.Data.LabUser

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>LabUser</legend>
        @Html.HiddenFor(model=>model.OrgId,(object)ViewBag.orgID)
        <div class="editor-label">
            @Html.LabelFor(model => model.User.UserName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.User.UserName)
            @Html.ValidationMessageFor(model => model.User.UserName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.User.UserPassword)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.User.UserPassword)
            @Html.ValidationMessageFor(model => model.User.UserPassword)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UsedMinutes)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UsedMinutes)
            @Html.ValidationMessageFor(model => model.UsedMinutes)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Active)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Active)
            @Html.ValidationMessageFor(model => model.Active)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
